package com.hk.migration.db.hk;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.*;
import lombok.Data;

/**
 * 教室即时状态表
 */
@Data
@Table(name = "classroom_status")
public class ClassroomStatus implements Serializable {
    /**
     * 教室id
     */
    @Id
    @Column(name = "room_id")
    private Integer roomId;

    /**
     * 已获得的星星数量
     */
    @Column(name = "stars")
    private Byte stars;

    /**
     * 课件id
     */
    @Column(name = "course_id")
    private Integer courseId;

    /**
     * 使用端口
     */
    @Column(name = "server_port")
    private Short serverPort;

    /**
     * 老师使用节点
     */
    @Column(name = "t_server")
    private Integer tServer;

    /**
     * 学生使用节点
     */
    @Column(name = "s_server")
    private Integer sServer;

    /**
     * 老师使用中麦克风
     */
    @Column(name = "t_mic")
    private String tMic;

    /**
     * 学生使用中麦克风
     */
    @Column(name = "s_mic")
    private String sMic;

    /**
     * 老师使用摄像头
     */
    @Column(name = "t_camera")
    private String tCamera;

    /**
     * 学生使用摄像头
     */
    @Column(name = "s_camera")
    private String sCamera;

    @Column(name = "t_video")
    private Byte tVideo;

    @Column(name = "s_video")
    private Byte sVideo;

    /**
     * 创建时间
     */
    @Column(name = "gmt_create")
    private Date gmtCreate;

    /**
     * 修改时间
     */
    @Column(name = "gmt_modified")
    private Date gmtModified;

    /**
     * 创建人ID
     */
    @Column(name = "creator_id")
    private Integer creatorId;

    /**
     * 创建人名称
     */
    @Column(name = "creator_name")
    private String creatorName;

    /**
     * 修改人ID
     */
    @Column(name = "modifier_id")
    private Integer modifierId;

    /**
     * 修改人名称
     */
    @Column(name = "modifier_name")
    private String modifierName;

    /**
     * 操作来源:默认0,1-新管理后台,2-定时器
     */
    @Column(name = "`source`")
    private Integer source;

    private static final long serialVersionUID = 1L;
}